<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>编辑学生信息</title>
</head>
<body>
    <h1>编辑学生信息</h1>
    <form action="${pageContext.request.contextPath}/student/update" method="post">
        <input type="hidden" name="id" value="${student.id}">
        
        <label for="name">姓名：</label>
        <input type="text" id="name" name="name" value="${student.name}" required><br>
        
        <label for="age">年龄：</label>
        <input type="number" id="age" name="age" value="${student.age}" required><br>
        
        <input type="submit" value="保存">
        <a href="${pageContext.request.contextPath}/student/list">返回列表</a>
    </form>
</body>
</html>
